//通过类去描述一个实体的对象
class Person{
    //属性
    public int age;
    public String name;
    //行为
    public void eat(){
        System.out.println("吃饭！");
    }
    public void act(){
        System.out.println("打豆豆！");
    }
}

class WashMechine{
    public String bread;//品牌
    public String type;//型号
    public double weight;//重量
    public double length;//长
    public double wide;//宽
    public double height;//高
    public String color;//颜色

    public void wathClothes(){
        System.out.println("洗衣服");
    }
    public void dryClothes(){
        System.out.println("甩干");
    }
    public void main(String[] args){
        System.out.println("heeh");
    }
}
class Dog{
    public String name;
    public String color;
    public void braks(){
        System.out.println(name+"玩玩叫！");
    }
    public void wag(){
        System.out.println(name+"摇尾巴！");
    }

}



public class Classes {
    public static void main1(String[] args) {
        //实例化一个狗对象
        Dog dog = new Dog();
        //int a = 10;
        dog.color = "黑色";
        dog.name = "西安";
        System.out.println(dog.name);
        System.out.println(dog.color);
        dog.wag();
        dog.braks();
        Dog dog2 = new Dog();
        Dog dog3 = new Dog();
    }
}
